blob: a2a0a8a136df495251273c77fe00d3c899ac2d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
CC="g++";
target "stage"
{
rule "exe";
input files("src/*.y", "src/*.l", "src/*.cpp");
CXXFLAGS="-ggdb";
CFLAGS="-ggdb";
FLEXFLAGS="-osrc/parser.yy.c";
BISONFLAGS="-d";
LDFLAGS += "-lbu++";
}
/*
rule "bison"
{
input "*.y";
output [INPUT.regex("\\.y$", ".tab.c"), INPUT.regex("\\.y$", ".tab.h")];
profile "build"
{
DIR=INPUT.dirName();
FILE=INPUT.fileName();
execute("cd ${DIR}; bison -d ${FILE}");
}
}
*/
|